package com.WISSC.util.session;

import com.WISSC.bean.IndividualEvent;
import com.WISSC.bean.User;

import javax.servlet.http.HttpSession;

/**
 *
 * Created by Zhang on 2018/9/12.
 * Feng
 */
public class SessionUtil {
    //获取session中的User
    public static User getSessionUser(HttpSession session){
        return   (User)  session.getAttribute("user");
    }



    public static IndividualEvent getSessionIndividualEvent(HttpSession session1){
        return   (IndividualEvent)  session1.getAttribute("individualEvent");
    }

}
